package com.example.pingxue.entity;

import jakarta.persistence.Column;
import jakarta.persistence.DiscriminatorColumn;
import jakarta.persistence.Entity;
import jakarta.persistence.Inheritance;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.SQLRestriction;

@Getter
@Setter
@Entity
@Inheritance
@SQLRestriction("is_deleted = 0")
@DiscriminatorColumn(name = "type")
public class User extends LogicEntity {
    @Column
    protected String username;

    @Column
    protected String password;

    @Column(updatable = false, insertable = false)
    protected Integer type;

}
